#ifndef __RF_PACKAGE__
#define __RF_PACKAGE__

//extern unsigned short PANID;
extern unsigned char RFMAC[8];
//extern unsigned short NWKADDR;

#define HEADER_LENGTH         (11)
#define MAX_TX_PACKAGE        (128)
#define MAX_RX_PACKAGE        (128)

extern unsigned char rf_rx_length;
extern unsigned char rf_tx_buffer[MAX_TX_PACKAGE];
extern unsigned char rf_rx_buffer[MAX_RX_PACKAGE];

void init_package(unsigned short panid,unsigned short nwkaddr);
void setTxDstPANID(unsigned short panid);
void setTxDstNwkAddr(unsigned short nwkaddr);
unsigned short getRxSrcPANID();
unsigned short getRxSrcNwkAddr();
unsigned short getRxDstPANID();
unsigned short getRxDstNwkAddr();

#endif
